﻿using System;

using Orchard.Data.Migration.Schema;
using Orchard.Environment.Extensions;

namespace FruitCake.SupportLibrary.Extensions
{
    [OrchardFeature("FruitCake.SupportLibrary.Extensions")]
    public static class FruitExtentions
    {
        public static CreateTableCommand AddBaseRecordColumns(this CreateTableCommand table)
        {
            return table
                .Column<int>("Id", column => column.PrimaryKey().Identity())
                .Column<DateTime>("CreationDate")
                .Column<DateTime>("LastModifiedDate");            
        }
    }
}
